/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.business;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hycreate.platform.common.persistence.DataEntity;


/**
 * 项目添加Entity
 * @author zyc
 * @version 2016-12-05
 */
public class BusinessProject extends DataEntity<BusinessProject> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 项目名
	private String customerId;		// 所属客户
	private String statusId;		// 状态
	private String proContact;		// 项目负责人
	private String followMan;		// 跟进人
	private Date beginTime;		// 开始时间
	private Date endTime;		// 结束时间
	private String content;		// 项目简介
	private String note;		// 注意事项
	private String spare1;		// 预留字段，并没有什么卵用
	
	public BusinessProject() {
		super();
	}

	public BusinessProject(String id){
		super(id);
	}

	@Length(min=0, max=100, message="项目名长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="所属客户长度必须介于 0 和 64 之间")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	@Length(min=0, max=64, message="状态长度必须介于 0 和 64 之间")
	public String getStatusId() {
		return statusId;
	}

	public void setStatusId(String statusId) {
		this.statusId = statusId;
	}
	
	@Length(min=0, max=64, message="项目负责人长度必须介于 0 和 64 之间")
	public String getProContact() {
		return proContact;
	}

	public void setProContact(String proContact) {
		this.proContact = proContact;
	}
	
	@Length(min=0, max=64, message="跟进人长度必须介于 0 和 64 之间")
	public String getFollowMan() {
		return followMan;
	}

	public void setFollowMan(String followMan) {
		this.followMan = followMan;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=500, message="项目简介长度必须介于 0 和 500 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=200, message="注意事项长度必须介于 0 和 200 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
	@Length(min=0, max=100, message="预留字段，并没有什么卵用长度必须介于 0 和 100 之间")
	public String getSpare1() {
		return spare1;
	}

	public void setSpare1(String spare1) {
		this.spare1 = spare1;
	}
	
}